// data.ts
const homeChildrenRoutes = [
    //菜单页面 需要加title  根据title渲染左侧菜单
    {
        path: "home",
        name: "home",
        component: () => import("../view/system/home/home.vue"),
        meta: {
            title: "首页",
            icon:'House'
        },
    },
    {
        path: "base",
        name: "base",
        meta: {
            title: "基础管理",
            icon:'Tickets'
        },
        children: [
            // {
            //     path: "huishouzhandian",
            //     name: "huishouzhandian",
            //     component: () =>
            //         import("../view/system/base/huishou/huishou.vue"),
            //     meta: {
            //         title: "回收站点管理",
            //         parentPath: "/base",
            //     },
            // },
            // {
            //     path: "cheng",
            //     name: "cheng",
            //     component: () => import("../view/system/base/cheng/cheng.vue"),
            //     meta: {
            //         title: "称管理",
            //         parentPath: "/base",
            //     },
            // },
            {
                path: "type",
                name: "type",
                component: () => import("../view/system/base/type/type.vue"),
                meta: {
                    title: "分类管理",
                    parentPath: "/base",
                },
            },
        ],
    },
    {
        path: "data",
        name: "data",
        meta: {
            title: "数据管理",
            icon:'DocumentCopy'
        },
        children: [
            {
                path: "liushui",
                name: "liushui",
                component: () =>
                    import("../view/system/datamng/datamng.vue"),
                meta: {
                    title: "流水明细",
                    parentPath: "/data",
                },
            }
        ],
    },
    {
        path: "company",
        name: "company",        
        meta: {
            title: "回收企业管理",
            icon:'Van'
        },
        children: [
            {
                path: "companys",
                name: "companys",
                component: () => import("../view/system/company/company.vue"),
                meta: {
                    title: "回收公司",
                    parentPath: "/company",
                },
            },
            {
                path: "company_ge",
                name: "company_ge",
                component: () => import("../view/system/company/company_ge.vue"),
                meta: {
                    title: "回收网点",
                    parentPath: "/company",
                },
            }
        ],
    },
    {
        path: "business_unit",
        name: "business_unit",
        component: () => import("../view/system/business_unit/business_unit.vue"),
        meta: {
            title: "经营单位管理",
            icon:'Stamp'
        },
    },
    {
        path: "business_unit_outdata",
        name: "business_unit_outdata",
        component: () => import("../view/system/business_unit_outdata/business_unit_outdata.vue"),
        meta: {
            title: "经营单位转出",
            icon:'Box'
        },
    },
    {
        path: "liyong_unit",
        name: "liyong_unit",
        component: () => import("../view/system/liyong_unit/liyong_unit.vue"),
        meta: {
            title: "利用单位管理",
            icon:'OfficeBuilding'
        },
    },
    {
        path: "data_statistics",
        name: "data_statistics",
        meta: {
            title: "数据统计",
            icon:'DataLine'
        },
        children: [
            {
                path: "huishou",
                name: "huishou",
                component: () =>
                    import("../view/system/data_statistics/huishou.vue"),
                meta: {
                    title: "回收数据统计",
                    parentPath: "/data_statistics",
                },
            },
            {
                path: "zhuanyun",
                name: "zhuanyun",
                component: () =>
                    import("../view/system/data_statistics/zhuanyun.vue"),
                meta: {
                    title: "转运数据统计",
                    parentPath: "/data_statistics",
                },
            },
            {
                path: "unit_statistics",
                name: "unit_statistics",
                component: () =>
                    import("../view/system/data_statistics/unit.vue"),
                meta: {
                    title: "利用单位统计",
                    parentPath: "/data_statistics",
                },
            },
            {
                path: "duibi",
                name: "duibi",
                component: () =>
                    import("../view/system/data_statistics/duibi.vue"),
                meta: {
                    title: "数据对比",
                    parentPath: "/data_statistics",
                },
            }
        ],
    }
    // 这里可以继续添加其他子路由
];

export default homeChildrenRoutes;
